Skip to content

Conversation

@jimklimov
Copy link
Member

@jimklimov jimklimov commented Jan 7, 2026

Follow-up to issue #3207 and #3219 testing, experimented and iterated with a NUT for Windows deployment and specifically NUT CGI under MS IIS as the web server.

There currently remains a problem with upsset.cgi(.exe) timing out, apparently either fgetc() never returns, or does not return EOF, when receiving an HTTP POST payload.

  • UPDATE: fixed/worked-around now

@jimklimov jimklimov added this to the 2.8.5 milestone Jan 7, 2026
@jimklimov jimklimov added enhancement documentation Windows Windows-not-on-par-with-POSIX Aspect of Windows builds known to be dysfunctional compared to POSIX builds; fix needed to be on par portability We want NUT to build and run everywhere possible CGI labels Jan 7, 2026
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 7, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 7, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from 9c8466e to 28cc920 Compare January 8, 2026 09:27
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
@jimklimov
Copy link
Member Author

Now upsset.cgi works also on IIS, although with a hacky workaround. I don't quite like or understand it, would prefer a more deterministic and clean solution, but this one at least works. And well, MS...

@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from 4b82441 to 89b512d Compare January 8, 2026 09:51
@AppVeyorBot
Copy link

@AppVeyorBot
Copy link

jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 8, 2026
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
…s know loading is completed and not stalled

Signed-off-by: Jim Klimov <[email protected]>
…UT favicon with CGI HTML pages

Signed-off-by: Jim Klimov <[email protected]>
…3207]

...not sure if select() works as expected here,
but NUT CGI under IIS keeps asking for login...

Signed-off-by: Jim Klimov <[email protected]>
…de-spread; is available in WIN32 builds though, so constrain it to them [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
… POST data from STDIN from client code into common code [networkupstools#3219]

Signed-off-by: Jim Klimov <[email protected]>
… CONTENT_LENGTH, and on IIS truncate it by a byte; in upsset add a sacrificial sentinel into each HTML FORM [networkupstools#3219]

Signed-off-by: Jim Klimov <[email protected]>
…mode, so ftell()/fseek() work predictably [networkupstools#3219]

Fix rewinding FOREACHUPS command to the correct byte location on WIN32 (or other platforms with CR vs CRLF issues).

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
…ample.in, NEWS.adoc, UPGRADING.adoc: introduced `@NUT_UPSSTATS_TEMPLATE@` magic token that HTML templates must start with [networkupstools#3249]

Signed-off-by: Jim Klimov <[email protected]>
…ample.in, NEWS.adoc, UPGRADING.adoc: introduced `@NUT_UPSSTATS_TEMPLATE@` magic token that HTML templates must start with [networkupstools#3249, networkupstools#3252]

Signed-off-by: Jim Klimov <[email protected]>
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
jimklimov added a commit to jimklimov/nut that referenced this pull request Jan 10, 2026
@jimklimov jimklimov force-pushed the issue-3207 branch 2 times, most recently from e13b9be to 50ade3a Compare January 10, 2026 14:08
@jimklimov jimklimov merged commit d4b89ab into networkupstools:master Jan 16, 2026
62 of 63 checks passed
@jimklimov jimklimov deleted the issue-3207 branch January 16, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CGI documentation enhancement portability We want NUT to build and run everywhere possible Windows Windows-not-on-par-with-POSIX Aspect of Windows builds known to be dysfunctional compared to POSIX builds; fix needed to be on par

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants